package com.huawei.appmarket.service.infoflow.view.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import o.dky.h;
import o.dky.i;

public class InfoFlowCardContainer extends LinearLayout {
    private LinearLayout ˊ;
    private View ˏ;
    private LinearLayout ॱ;

    public InfoFlowCardContainer(Context context) {
        super(context);
        ˊ(context);
    }

    public InfoFlowCardContainer(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        ˊ(context);
    }

    private void ˊ(Context context) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        this.ॱ = (LinearLayout) LayoutInflater.from(context).inflate(i.ˊˊ, null);
        this.ˊ = (LinearLayout) this.ॱ.findViewById(h.ॱˊ);
        this.ˏ = this.ॱ.findViewById(h.ˈ);
        addView(this.ॱ, layoutParams);
    }

    public void ˋ(View view, LinearLayout.LayoutParams layoutParams) {
        if (view != null && this.ˊ != null) {
            if (layoutParams != null) {
                this.ˊ.addView(view, layoutParams);
            } else {
                this.ˊ.addView(view);
            }
        }
    }

    public void setDividerVisibility(int i) {
        if (this.ˏ != null && this.ˏ.getVisibility() != i) {
            this.ˏ.setVisibility(i);
        }
    }

    public LinearLayout ˎ() {
        return this.ˊ;
    }
}
